Emacs should no longer unexpectedly alter the byte order mark
authorEli Zaretskii <eliz@gnu.org>
Fri, 15 Dec 2017 09:06:07 +0000 (11:06 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sun, 26 Aug 2018 16:39:53 +0000 (11:39 -0500)
commitbc952e642091959638f819a1e4617deccfef97d0
treedcb45c29002709a8c626c04cc39a849fa2612b82
parent21c38e366f7bc1497b4bd113e4f8564ef6ccbc17
Emacs should no longer unexpectedly alter the byte order mark

This upstream patch has been incorporated to fix the problem:

  Better support utf-8-with-signature and utf-8-hfs in XML/HTML

  * lisp/international/mule.el (sgml-xml-auto-coding-function):
  Support UTF-8 with BOM and utf-8-hfs as variants of UTF-8, and
  obey the buffer's encoding if it is one of these variants, instead
  of re-encoding in UTF-8 proper.  (Bug#20623)

Origin: backport, commit: 889f07c352f7e0deccf59353a60a45f2716551d8)
Bug: https://bugs.gnu.org/20623
Bug-Debian: http://bugs.debian.org/883434
Forwarded: not-needed
lisp/international/mule.el